<%@page import="cn.three.biz.ClassifyBiz"%>
<%@page import="cn.three.eneity.Classify"%>
<%@page import="java.util.List"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<style>
table{
  border:1px solid red;
  width:1000px;
  
}
</style>
<body background="../pic1/ManBgroud.gif">
   <form action="AddClassIfy" method="post">
		类名:<input type="text" name="name"><br/><br/>
		<input type="submit" value="添加">
	</form>
   <a href="classIfyAdd.jsp">添加</a>
     <table>
          <tr>
          <td>类别编号</td>
          <td>类别</td>
          <td>操作</td>
          </tr> 
            <%
              request.setCharacterEncoding("UTF-8");
              response.setCharacterEncoding("UTF-8");
               ClassifyBiz biz=new ClassifyBiz();
               List<Classify> list=biz.showClassify();
              for(int i=0;i<list.size();i++){
            	  Classify c=list.get(i);
            %>
          <tr>
              <td><%=c.getClassifyId() %></td>
              <td><%=c.getClassifyName() %></td>
              <td><a href="classIfyUpdat.jsp?classifyid=<%=c.getClassifyId()%>">编辑</a>|<a href="Classifydelet_servlet?classifyid=<%=c.getClassifyId()%>">删除</a></td>         
          </tr>  
          <%} %> 
     </table>
</body>
</html>